<template>
  <h1>首页</h1>

  <button>{{ route }}</button>
</template>

<script>
import { useRoute, useRouter } from 'vue-router'

function useA() {
  return {
    name: '张三'
  }
}

function useB() {
  return {
    name: '里斯'
  }
}

export default {
  mixins: [a, b],

  setup() {
    const { name: aName } = useA()

    const { name: bName } = useB()
  }
}
</script>
